# 文件操作

# conf = open('./config')

# print(conf.read())

# conf.close()


# 使用with语句自动关闭

filePath = './config'

# 读文件
with open(filePath, 'r') as conf:
    for line in conf.readlines():
        print(line.strip())

# 写文件 w ,a
with open(filePath, 'a') as conf:
    conf.write('Hello\n')